package com.fowo.api.model.payment.record;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.format.NumberFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 请款单付款记录 导入导出辅助模型 */
@Getter
@Setter
public class PaymentRecordExcelPo {

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属请款单")
  private String parentIdAssociatedOrder;

  @ExcelIgnore
  @ExcelProperty(value = "所属请款单")
  private Long parentId;

  @Size(max = 50, message = "操作时间长度不能超过20")
  @DateTimeFormat("yyyy年MM月dd日HH:mm:ss")
  @ExcelProperty(value = "操作时间")
  private java.util.Date handleTime;

  @Size(max = 50, message = "付款金额长度不能超过20")
  @NumberFormat("0.00")
  @ExcelProperty(value = "付款金额")
  private java.math.BigDecimal payment;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "付款人")
  private String paymentUserName;

  @ExcelIgnore
  @ExcelProperty(value = "付款人")
  private Long paymentUser;

  @DateTimeFormat("yyyy年MM月dd日HH:mm:ss")
  @ExcelProperty(value = "实际付款时间")
  private java.util.Date paymentTime;

  @Size(max = 500, message = "备注长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "备注")
  private String remark;
}
